package com.manage.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.util.Date;

@Data
public class GetAllCaseStageInfoByCaseIdVO implements Comparable<GetAllCaseStageInfoByCaseIdVO>{
    private Integer caseStageId;
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;

    @Override
    public int compareTo(GetAllCaseStageInfoByCaseIdVO o) {
        return this.caseStageId - o.getCaseStageId();
    }
}
